package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.AuthIdentity;
import com.vcredit.creditcat.persistence.base.AuthIdentityMapper;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 **/
@Service
public class AuthIdentityService {
	@Autowired
	private AuthIdentityMapper mapper;

	public void insert(AuthIdentity obj) {
		mapper.insert(obj);
	}

	public void update(AuthIdentity obj) {
		mapper.update(obj);
	}

	public List<AuthIdentity> findAll() {
		return mapper.findAll();
	}

	public List<AuthIdentity> find(AuthIdentity obj) {
		return mapper.find(obj);
	}

	public AuthIdentity findByProcessId(Long processId) {
		return mapper.findByProcessId(processId);
	}

	public AuthIdentity findById(Long id) {
		return mapper.findById(id);
	}
}